/*
 * Copyright 2010 Mark Eschbach.
 *
 * $HeadURL$
 * $Id$
 */
package com.meschbach.psi.example.salutator;

import org.testng.annotations.Test;
import static org.testng.Assert.*;

/**
 *
 * @author "Mark Eschbach" &lt;meschbach@gmail.com&gt;
 */
public class SalutatorFixture<T extends Salutator> {

    protected T salutator;

    @Test
    public void testGreetingState() {
        final String NAME = "This is a name";
        final String GREETING = "Hello!";

        salutator.setGreetingFor(NAME, GREETING);
        assertTrue(salutator.hasGreetingFor(NAME));
        assertEquals(salutator.getGreetingFor(NAME), GREETING);
    }
}
